package com.ruoyi.patient_drug.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 病人取药对象 patient_drug
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
public class PatientDrug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long takeId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 药房ID */
    @Excel(name = "药房ID")
    private Long pharmacyId;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 取药数量 */
    @Excel(name = "取药数量")
    private Long quantity;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalAmount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date takeTime;

    public void setTakeId(Long takeId) 
    {
        this.takeId = takeId;
    }

    public Long getTakeId() 
    {
        return takeId;
    }

    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }

    public void setPharmacyId(Long pharmacyId) 
    {
        this.pharmacyId = pharmacyId;
    }

    public Long getPharmacyId() 
    {
        return pharmacyId;
    }

    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }

    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setTakeTime(Date takeTime) 
    {
        this.takeTime = takeTime;
    }

    public Date getTakeTime() 
    {
        return takeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("takeId", getTakeId())
            .append("patientName", getPatientName())
            .append("pharmacyId", getPharmacyId())
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("quantity", getQuantity())
            .append("totalAmount", getTotalAmount())
            .append("takeTime", getTakeTime())
            .append("remark", getRemark())
            .toString();
    }
}
